package com.woniu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 表名：flower_info
 * 表注释：图书表
*/
@Table(name = "flower_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FlowerInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 鲜花商品编号
     */
    @Id
    @Column(name = "flower_id")
    private Integer flowerId;

    /**
     * 鲜花名称
     */
    @Column(name = "flower_name")
    private String flowerName;

    /**
     * 鲜花图片
     */
    @Column(name = "flower_img")
    private String flowerImg;

    /**
     * 鲜花类型
     */
    @Column(name = "type_id")
    private Integer typeId;

    /**
     * 鲜花上架时间
     */
    @Column(name = "publisher_date")
    private Date publisherDate;

    /**
     * 鲜花价格
     */
    @Column(name = "flower_price")
    private BigDecimal flowerPrice;

    /**
     * 鲜花库存
     */
    @Column(name = "flower_store_count")
    private Integer flowerStoreCount;

    /**
     * 鲜花售出数量
     */
    @Column(name = "flower_sale_count")
    private Integer flowerSaleCount;

    /**
     * 鲜花收藏数量
     */
    @Column(name = "flower_collection_count")
    private Integer flowerCollectionCount;

    /**
     * 鲜花状态(0正常 1逻辑删除 2待上架)
     */
    @Column(name = "is_delete")
    private Byte isDelete;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 鲜花推荐
     */
    @Column(name = "flower_recommend")
    private String flowerRecommend;

    /**
     * 鲜花内容介绍简介
     */
    private String introduction;

    public FlowerInfo(Integer flowerId, Date publisherDate, Byte isDelete) {
        this.flowerId = flowerId;
        this.publisherDate = publisherDate;
        this.isDelete = isDelete;
    }

    public FlowerInfo(Byte isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取鲜花商品编号
     *
     * @return flowerId - 鲜花商品编号
     */
    public Integer getFlowerId() {
        return flowerId;
    }

    /**
     * 设置鲜花商品编号
     *
     * @param flowerId 鲜花商品编号
     */
    public void setFlowerId(Integer flowerId) {
        this.flowerId = flowerId;
    }

    /**
     * 获取鲜花名称
     *
     * @return flowerName - 鲜花名称
     */
    public String getFlowerName() {
        return flowerName;
    }

    /**
     * 设置鲜花名称
     *
     * @param flowerName 鲜花名称
     */
    public void setFlowerName(String flowerName) {
        this.flowerName = flowerName;
    }

    /**
     * 获取鲜花图片
     *
     * @return flowerImg - 鲜花图片
     */
    public String getFlowerImg() {
        return flowerImg;
    }

    /**
     * 设置鲜花图片
     *
     * @param flowerImg 鲜花图片
     */
    public void setFlowerImg(String flowerImg) {
        this.flowerImg = flowerImg;
    }

    /**
     * 获取鲜花类型
     *
     * @return typeId - 鲜花类型
     */
    public Integer getTypeId() {
        return typeId;
    }

    /**
     * 设置鲜花类型
     *
     * @param typeId 鲜花类型
     */
    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    /**
     * 获取鲜花上架时间
     *
     * @return publisherDate - 鲜花上架时间
     */
    public Date getPublisherDate() {
        return publisherDate;
    }

    /**
     * 设置鲜花上架时间
     *
     * @param publisherDate 鲜花上架时间
     */
    public void setPublisherDate(Date publisherDate) {
        this.publisherDate = publisherDate;
    }

    /**
     * 获取鲜花价格
     *
     * @return flowerPrice - 鲜花价格
     */
    public BigDecimal getFlowerPrice() {
        return flowerPrice;
    }

    /**
     * 设置鲜花价格
     *
     * @param flowerPrice 鲜花价格
     */
    public void setFlowerPrice(BigDecimal flowerPrice) {
        this.flowerPrice = flowerPrice;
    }

    /**
     * 获取鲜花库存
     *
     * @return flowerStoreCount - 鲜花库存
     */
    public Integer getFlowerStoreCount() {
        return flowerStoreCount;
    }

    /**
     * 设置鲜花库存
     *
     * @param flowerStoreCount 鲜花库存
     */
    public void setFlowerStoreCount(Integer flowerStoreCount) {
        this.flowerStoreCount = flowerStoreCount;
    }

    /**
     * 获取鲜花售出数量
     *
     * @return flowerSaleCount - 鲜花售出数量
     */
    public Integer getFlowerSaleCount() {
        return flowerSaleCount;
    }

    /**
     * 设置鲜花售出数量
     *
     * @param flowerSaleCount 鲜花售出数量
     */
    public void setFlowerSaleCount(Integer flowerSaleCount) {
        this.flowerSaleCount = flowerSaleCount;
    }

    /**
     * 获取鲜花收藏数量
     *
     * @return flowerCollectionCount - 鲜花收藏数量
     */
    public Integer getFlowerCollectionCount() {
        return flowerCollectionCount;
    }

    /**
     * 设置鲜花收藏数量
     *
     * @param flowerCollectionCount 鲜花收藏数量
     */
    public void setFlowerCollectionCount(Integer flowerCollectionCount) {
        this.flowerCollectionCount = flowerCollectionCount;
    }

    /**
     * 获取鲜花状态(0正常 1逻辑删除 2待上架)
     *
     * @return isDelete - 鲜花状态(0正常 1逻辑删除 2待上架)
     */
    public Byte getIsDelete() {
        return isDelete;
    }

    /**
     * 设置鲜花状态(0正常 1逻辑删除 2待上架)
     *
     * @param isDelete 鲜花状态(0正常 1逻辑删除 2待上架)
     */
    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 获取创建时间
     *
     * @return createTime - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return updateTime - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取鲜花推荐
     *
     * @return flowerRecommend - 鲜花推荐
     */
    public String getFlowerRecommend() {
        return flowerRecommend;
    }

    /**
     * 设置鲜花推荐
     *
     * @param flowerRecommend 鲜花推荐
     */
    public void setFlowerRecommend(String flowerRecommend) {
        this.flowerRecommend = flowerRecommend;
    }

    /**
     * 获取鲜花内容介绍简介
     *
     * @return introduction - 鲜花内容介绍简介
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * 设置鲜花内容介绍简介
     *
     * @param introduction 鲜花内容介绍简介
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
}